from .base_page import BasePage

class NavigationPage(BasePage):
    FIRST_MENU = ('xpath', '//*[@data-feature="SYSTEMINFO"]')
    ASSET_INFO = ('xpath', '//*[@data-feature="SI_ASSERT_EQUIPMENT"]')
    HW_MONITER = ('xpath', '//*[@data-feature="SI_HWMONITOR"]')

    def __init__(self, webdriver):
        super().__init__(webdriver)

    def navigation_to_system_info(self):
        element = self.find_element(*self.FIRST_MENU)
        self.click_element(element=element)

    def navigation_to_asset_info(self):
        element = self.find_element(*self.ASSET_INFO)
        self.click_element(element)

    def navigation_to_hw_moniter(self):
        element = self.find_element(*self.HW_MONITER)
        self.click_element(element)

